package com.example.test13spring.aop.test1;

import com.example.test13spring.aop.test1.annotation.AfterAnnotation;
import com.example.test13spring.aop.test1.annotation.AroundAnnotation;
import com.example.test13spring.aop.test1.annotation.BeforeAnnotation;

import org.springframework.stereotype.Component;


/**
 * @Author: fxy
 * @Date: 2022/02/18/13:18
 * @Description:
 */
@Component
public class ServiceTest {

    @BeforeAnnotation
    public void doSome1(String arg){
        System.out.println("doSome1");
    }

    @AroundAnnotation
    public void doSome2(String arg){
        System.out.println("doSome2");
    }

    @AfterAnnotation
    public String doSome3(String arg){
        System.out.println("doSome3");
        return "111111";
    }
}
